const positions=["财务助理","财务主管","UI","测试","高级工程师","项目经理"]

const departMembers = [
  {
    Id: "001",
    name: "王小虎",
    gender: "男",
    phone: "13456789876",
    state: "在职",
    position: "财务助理",
    address: "江西省赣州市章贡区红旗大道86号江西理工大学"
  },
  {
    Id: "002",
    name: "王小虎",
    gender: "男",
    phone: "13456789876",
    state: "在职",
    position: "财务助理",
    address: "上海市普陀区金沙江路 1517 弄"
  },
  {
    Id: "003",
    name: "王小虎",
    gender: "男",
    phone: "13456789876",
    state: "在职",
    position: "财务助理",
    address: "上海市普陀区金沙江路 1519 弄"
  },
  {
    Id: "004",
    name: "王小虎",
    gender: "男",
    phone: "13456789876",
    state: "在职",
    position: "财务助理",
    address: "上海市普陀区金沙江路 1516 弄"
  },
  {
    Id: "005",
    name: "王小虎",
    gender: "男",
    phone: "13456789876",
    state: "在职",
    position: "财务助理",
    address: "上海市普陀区金沙江路 1516 弄"
  },
];

const weekAttend=[
  {
    date:'周一',
    sum:'66',
    attend_count:'66',
    absent_count:'0',
    late_count:'0',
    in_count:'0',
    out_count:'0',
    attend_rate:'100%',
  },
  {
    date:'周二',
    sum:'66',
    attend_count:'66',
    absent_count:'0',
    late_count:'0',
    in_count:'0',
    out_count:'0',
    attend_rate:'100%',
  },
  {
    date:'周三',
    sum:'66',
    attend_count:'66',
    absent_count:'0',
    late_count:'0',
    in_count:'0',
    out_count:'0',
    attend_rate:'100%',
  },
  {
    date:'周四',
    sum:'66',
    attend_count:'66',
    absent_count:'0',
    late_count:'0',
    in_count:'0',
    out_count:'0',
    attend_rate:'100%',
  },
  {
    date:'周五',
    sum:'66',
    attend_count:'66',
    absent_count:'0',
    late_count:'0',
    in_count:'0',
    out_count:'0',
    attend_rate:'100%',
  },
]

const absentStatus=[
        {
          Id: "001",
          name: "王小虎",
          position: "财务助理",
          absent_count: "5次"
        },
        {
          Id: "002",
          name: "王小虎",
          position: "财务助理",
          absent_count: "5次"
        },
        {
          Id: "003",
          name: "王小虎",
          position: "财务助理",
          absent_count: "5次"
        },
        {
          Id: "004",
          name: "王小虎",
          position: "财务助理",
          absent_count: "5次"
        },
]

module.exports = [
  //获取部门内的所有职位
  {
    url: "/manager/getPositions",
    type: "get",
    result: () => {
      return {
        code: 200,
        data: { positions }
      };
    }
  },
  //获取部门所有成员
  {
    url: "/manager/getMembers",
    type: "get",
    result: () => {
      return {
        code: 200,
        data: {
          departMembers,
          total:5
        }
      };
    }
  },
  //获取本周考勤数据
  {
    url:"/manager/getWeekAttend",
    type:'get',
    result:()=>{
      return{
        code:200,
        data:{weekAttend}
      }
    }
  },
  //获取缺勤名单
  {
    url:'/manager/getAbsentStatus',
    type:'get',
    result:()=>{
      return {
        code: 200,
        data: {
          absentStatus,
          total:absentStatus.length
        }
      };
    }
  }
]